package com.qcby.model.dto;

import com.qcby.util.StringUtils;
import lombok.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CommentForCreateDto {

    private Integer uid;

    private Integer mid;

    private String commentContent;

    private Integer commentScore;

    public Boolean isParamValid() {
        return this.uid != null && this.mid != null && this.commentScore != null && !StringUtils.isEmpty(this.commentContent);
    }
}
